package com.espoir.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @GetMapping("/test")
    @ResponseBody
    public String test(){
        System.out.println("test");
        return "\"msg\":\"test\"";
    }

    @GetMapping({"/index"})
    public String index(){
        System.out.println("index");
        return "index";
    }

}
